package com.sys.controller;


import com.github.pagehelper.PageInfo;
import com.sys.model.Dictionary;
import com.sys.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * Created by yangjianbo on 2016/8/18.
 * 数据字典信息
 */
@RestController
@RequestMapping("common/dictionary")
public class DictionaryController {
    @Autowired
    private DictionaryService service;

    @RequestMapping(value = "search",method = RequestMethod.GET)
    public PageInfo<Dictionary> search(){
        return service.search(new HashMap<>(),1,12);
    }


}
